package Model;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Properties;

public class PropertiesUtils {

	public static String imageProperties(String key){
		Properties prop = new Properties();
		InputStream input = null;
		try {
			input = PropertiesUtils.class.getClassLoader().getResourceAsStream("images.properties");
			prop.load(input);
			return prop.getProperty(key);
		} catch (IOException io) {
			io.printStackTrace();
		}
		return null;
	}
	
	public static String informationsProperties(String key){
		Properties prop = new Properties();
		InputStream input = null;
		try {
			input = PropertiesUtils.class.getClassLoader().getResourceAsStream("informations.properties");
			prop.load(input);
			return prop.getProperty(key);
		} catch (IOException io) {
			io.printStackTrace();
		}
		return null;
	}
}
